package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.AfterSaleTargetZ1;
import com.example.demo.entity.AfterSaleTargetZ2;
import com.example.demo.repository.AfterSaleTargetZ2Repository;

@Service
public class AfterSaleTargetZ2Service extends BaseService<AfterSaleTargetZ2, Integer>{

	@Autowired
	private AfterSaleTargetZ2Repository r2;
	
	public List<AfterSaleTargetZ2> findByUser1(AfterSaleTargetZ1 sale1) {
		// TODO Auto-generated method stub
		return r2.findByUser1(sale1);
	}

	public List<AfterSaleTargetZ2> findByUser1Id(Integer erBiaoId) {
		// TODO Auto-generated method stub
		return r2.findByUser1Id( erBiaoId);
	}

}
